package com.roin.learn.springmvc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.roin.learn.springmvc.dao.UserMapper;
import com.roin.learn.springmvc.datasource.BiDSChoicer;
import com.roin.learn.springmvc.entity.User;
import com.roin.learn.springmvc.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper userMapper;

	public User selectUserById(String userId) {
		return userMapper.selectByPrimaryKey(userId);
		
	}

	@Override
	public int update(User user) {
		return userMapper.updateByPrimaryKeySelective(user);
	}

}
